home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "modMethodDemo"
- ' Xceed FTP Library - Method Demonstrator sample application
- ' Copyright (c) 2000 Xceed Software Inc.
- '
- ' [modMethodDemo.bas]
- '
- ' This module contains enumerations and public constants that
- ' are referred to by the main form's code.
- '
- ' This file is part of the Xceed FTP Library samples applications.
- ' The source code in this file is only intended as a supplement
- ' to Xceed FTP Library's documentation, and is provided "as is",
- ' without warranty of any kind, either expressed or implied.
-
- Option Explicit
-
- '
- ' Each method demonstrated in this sample
- '
-
- Public Enum EXceedFtpMethods
- cNone = 0
- cConnect = &H1
- cDisconnect = &H2
- cChangeCurrentFolder = &H4
- cChangeToParentFolder = &H8
- cCreateFolder = &H10
- cRemoveFolder = &H20
- cListFolderContents = &H40
- cGetFolderContents = &H80
- cRenameFile = &H100
- cDeleteFile = &H200
- cReceiveFile = &H400
- cSendFile = &H800
- cReceiveMultipleFiles = &H1000
- cSendMultipleFiles = &H2000
- End Enum
-
- '
- ' Quick information to display for properties
- '
-
- Public Const cServerAddressInfo = "The address of the FTP server you wish to connect to. " & _
- "You can specify a hostname like 'ftp.xceedsoft.com' or an IP address like " & _
- "'192.168.0.200'. You can also specify a WINS hostname, like Windows " & _
- "computer names."
-
- Public Const cServerPortInfo = "The port number of the FTP server you wish to connect to."
-
- Public Const cUserNameInfo = "The username to log in to the FTP."
-
- Public Const cPasswordInfo = "The password to use for the user being logged in to the FTP server, if required."
-
- Public Const cAllocateStorageInfo = "Some FTP servers require the client to pre-allocate enough space " & _
- "on the server before sending a file. In this case, you can " & _
- "set the AllocateStorage property to true to tell the library to send " & _
- "the 'ALLO' FTP command before each send operation."
-
- Public Const cPassiveModeInfo = "This property affects the way the data connection (listings and file transfers) " & _
- "is initiated between the client and the server. In passive mode (True), the " & _
- "client waits for the server to connect to it. Otherwise, the client connects to " & _
- "the server."
-
- Public Const cAsciiRepresentationTypeInfo = "This property affects the format of the files transferred. " & _
- "In ASCII format, the files are transferred as text files, " & _
- "with CF/LF combinaisons at the end of each line. In this case, " & _
- "the actual number of bytes transferred may differ from the " & _
- "initially reported sizes."
-
- Public Const cBinaryRepresentationTypeInfo = "This property affects the format of the files transferred. " & _
- "In binary format, the files are transferred with the same " & _
- "BYTE format. The resulting file is an exact binary image of " & _
- "the original file."
-
- '
- ' Quick information for method parameters
- '
-
- Public Const cFolderNameInfo = "Most FTP servers cannot create more than one folder deep at a time, but you " & _
- "still can specify a relative or absolute path before the folder to create. Most " & _
- "FTP servers do not permit removing a non-empty folder."
-
- Public Const cFolderMaskInfo = "You can specify a relative or absolute path before the file mask. You can " & _
- "leave that field empty if you wish to list all the contents of the current folder."
-
- Public Const cRemoteFilenameInfo = "The name of the remote file you wish to rename or delete. You can include a " & _
- "relative or absolute path with the filename."
-
- Public Const cNewFilenameInfo = "The filename to which you wish to rename the remote filename. Many servers " & _
- "support specifying a different path for the new filename, to actually move " & _
- "the file from one folder to another."
-
- Public Const cSourceFilenameInfo = "SendFile/ReceiveFile: The name of the file you wish to transfer." & vbCrLf & _
- "SendMultipleFiles/ReceiveMultipleFiles: The mask of the files you wish " & _
- "to transfer." & vbCrLf & vbCrLf & _
- "You can specify a relative or absolute path before the filename or mask."
-
- Public Const cDestinationFilenameInfo = "SendFile/ReceiveFile: The name of the destination file to create or update." & vbCrLf & _
- "SendMultipleFiles/ReceiveMultipleFiles: The destination folder where to " & _
- "create or update transferred files." & vbCrLf & vbCrLf & _
- "You can specify a relative or absolute path before the filename or as the folder."
-
- Public Const cOffsetInfo = "If you wish to resume a file transfer, enter the position in the file where to resume " & _
- "transfer from, or enter 0 if you want a full transfer."
-
- Public Const cAppendInfo = "If you wish to append the contents of a file to the end of a remote file on the " & _
- "server side, you can tell SendFile or SendMultipleFiles to use the append command."
-
- Public Const cProcessSubfoldersInfo = "When transferring multiple files using the ReceiveMultipleFiles or " & _
- "SendMultipleFiles methods, you can tell the library to also look for " & _
- "matching files in subfolders."
-
-